<template>
	<div class="page">
		<p class="title">基本用法</p>
		<p>
			<gr-input v-model="createTime" suffix-icon="arrow-right-bold" @click="showTimePicker" @icon-click="showTimePicker" />
		</p>
		<gr-popup v-model="isShowTimePicker">
			<gr-timepicker v-model="createTime" @confirm="hideTimePicker" @cancel="hideTimePicker"></gr-timepicker>
		</gr-popup>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				createTime: '08:00',
				isShowTimePicker: false
			}
		},
		mounted() {
			
		},
		methods: {
			showTimePicker() {
				this.isShowTimePicker = true;
			},
			hideTimePicker() {
				this.isShowTimePicker = false;
			}
		}
	}
</script>

<style lang="scss">
	.page {
		padding: 0 10px;
	}
</style>
